/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import business.AnalysisBusiness;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import model.AnalysisCar;
import model.AnalysisPkType;
import model.AnalysisTour;

/**
 *
 * @author Administrator
 */
@ManagedBean
@RequestScoped
public class AnalysisBean {
    private List<AnalysisCar> anlCar;
    private List<AnalysisTour> anlTour;
    private List<AnalysisPkType> anlType;

    public List<AnalysisPkType> getAnlType() {
        return anlType;
    }

    public void setAnlType(List<AnalysisPkType> anlType) {
        this.anlType = anlType;
    }

    public List<AnalysisTour> getAnlTour() {
        return anlTour;
    }

    public void setAnlTour(List<AnalysisTour> anlTour) {
        this.anlTour = anlTour;
    }

    private AnalysisBusiness analysisBusiness = new AnalysisBusiness();

    public List<AnalysisCar> getAnlCar() {
        return anlCar;
    }

    public void setAnlCar(List<AnalysisCar> anlCar) {
        this.anlCar = anlCar;
    }

    /** Creates a new instance of AnalysisBean */
    public AnalysisBean() {
        anlCar = analysisBusiness.listRecordAnalysisCar();
        anlTour = analysisBusiness.listRecordAnalysisTour();
        anlType = analysisBusiness.listRecordAnalysisPkType();
    }
}
